<template>
	<view>
		<uni-navbar :title="'补款缴费'"></uni-navbar>

		<view class="block">
			<view class="b-1">
				<view>客户姓名</view>
				<view>王富贵</view>
			</view>
		</view>

		<view class="center">
			<view class="c-block">
				<view class="c-b-1 border">
					<view>课程名称：</view>
					<view>2022押题冲刺班</view>
				</view>
				<view class="c-b-1 border">
					<view>折后价：</view>
					<view>1000元</view>
				</view>
				<view class="c-b-1 border">
					<view>原已付款：</view>
					<view>1000元</view>
				</view>
				<view class="c-b-1">
					<view>上次余额：</view>
					<view>1000元</view>
				</view>
			</view>
		</view>

		<view class="block">
			<view class="b-1">
				<view>付款方式</view>
				<view>线下付款<u-icon name="arrow-right"></u-icon>
				</view>
			</view>
			<view class="b-1">
				<view>缴费方式</view>
				<view>网课转面授<u-icon name="arrow-right"></u-icon>
				</view>
			</view>
		</view>

		<view class="block">
			<view class="b-1">
				<view>订单号</view>
				<view @click="show = true">
					{{order_num}}
				</view>
			</view>
		</view>
		<view class="lizi">
			<view>*1.订单更换成功后，网课自动取消</view>
			<view>2.更换成功后，无法取消已更换订单</view>
		</view>
		<!-- 备注 -->
		<view class="mask">
			<view class="m-title">备注</view>
			<view class="m-text">
				<u-input type="textarea" v-model="mask" placeholder="请留下备注"></u-input>
			</view>
		</view>

		<!-- 提交 -->
		<view class="submit" @click="subTijiao">
			点击付款
		</view>

		<view style="padding-bottom: 30rpx;"></view>

		<!-- 网课订单号 -->
		<u-popup v-model="show" mode="center" border-radius="14">
			<view class="pop-block">
				<view class="p-title">网课订单号</view>
				<u-input v-model="order_num1" placeholder="请输入网课订单号" placeholder-style="color: #b4b4b4"
					input-align="center" :clearable="false"></u-input>
			</view>
			<view class="pop-button">
				<view>取消</view>
				<view>确定</view>
			</view>
		</u-popup>
	</view>
</template>

<script>
	export default {
		data() {
			return {
				mask: '',
				order_num: '请输入网课订单号',
				order_num1: '',
				show: false
			}
		},
		methods: {
			subTijiao() {
				uni.navigateBack({
					delta: 1
				})
			}
		}
	}
</script>

<style lang="scss" scoped>
	.block {
		width: 750rpx;
		background-color: #fff;
		margin-top: 20rpx;

		.b-1 {
			width: 690rpx;
			height: 78rpx;
			margin-left: 30rpx;
			display: flex;
			justify-content: space-between;
			border-bottom: 1rpx solid #f4f4f4;

			view {
				font-size: 26rpx;
				font-family: Source Han Sans SC;
				font-weight: 600;
				color: #4D4D4D;
				line-height: 78rpx;
			}
		}
	}

	.center {
		width: 750rpx;
		padding: 30rpx;
		background-color: #fff;
		margin-top: 20rpx;

		.c-block {
			width: 100%;
			padding: 20rpx;
			background-color: #F5F5F5;

			.c-b-1 {
				font-size: 26rpx;
				font-family: Source Han Sans SC;
				font-weight: 400;
				color: #666666;
				display: flex;
				justify-content: space-between;
				line-height: 80rpx;
			}

			.border {
				border-bottom: 1rpx solid #e7e7e7;
			}
		}
	}

	.mask {
		width: 750rpx;
		padding: 30rpx;
		background-color: #fff;
		// margin-top: 20rpx;

		.m-title {
			font-size: 26rpx;
			font-family: Source Han Sans SC;
			font-weight: 400;
			color: #666666;
			line-height: 60rpx;
		}

		.m-text {
			background-color: #e6e6e6;
			padding: 20rpx;
			border-radius: 10rpx;
			// height: 200rpx;
		}
	}

	.lizi {
		font-size: 24rpx;
		font-family: Source Han Sans SC;
		font-weight: 400;
		color: #999999;
		text-align: right;
		padding: 10rpx 20rpx;
		line-height: 40rpx;
	}

	.submit {
		width: 690rpx;
		height: 70rpx;
		margin: 30rpx 0 0 30rpx;
		background: #0590FE;
		border-radius: 10rpx;
		font-size: 30rpx;
		font-family: Source Han Sans SC;
		font-weight: 400;
		color: #FFFFFF;
		text-align: center;
		line-height: 70rpx;
	}

	.pop-block {
		width: 500rpx;
		padding: 20rpx;

		.p-title {
			font-size: 24rpx;
			font-family: Source Han Sans SC;
			font-weight: 400;
			color: #4C4C4C;
			text-align: center;
			line-height: 60rpx;
			padding-bottom: 20rpx;
		}

		/deep/ .u-input {
			background-color: #F5F5F5;
		}
	}
	
	.pop-button{
		width: 100%;
		height: 80rpx;
		font-size: 28rpx;
		font-family: Source Han Sans SC;
		font-weight: 400;
		display: flex;
		text-align: center;
		line-height: 80rpx;
		border-top: 1rpx solid #e6e6e6;
		view:nth-child(1){
			width: 50%;
			color: #999999;
		}
		view:nth-child(2){
			width: 50%;
			color: #4C4C4C;
			border-left: 1rpx solid #e6e6e6;
		}
	}
</style>
